package com.xon.lotp.utils;

public class TextFormat {

    /**
     * create by: Xonline
     * create time: 10:31 上午 2021/5/15
     *
      * @Param: String
     * @return
     */
    public static String uuidFormat(String uuid) {
        String result = uuid.substring(14, 18) +
                        uuid.substring(9, 13) +
                        uuid.substring(0, 8) +
                        uuid.substring(19, 23) +
                        uuid.substring(24);
        return result;
    }
    public static String getLanguage(String acceptLanguage){
        String languageCode = acceptLanguage.substring(0,acceptLanguage.indexOf(","));
        return languageCode;
    }
}
